import { request } from '@umijs/max';

export async function getProjectList(
  params: {
    [key: string]: any
  },
  options?: { [key: string]: any },
) {
  return request<{
    code: number;
    msg?: string;
    data?: Record<string, any>[];
  }>('/engine-service/api/v1/project/list', {
    method: 'GET',
    params,
    ...(options || {}),
  });
}